
with open("data/int_1000000.dat") as f:
    data = f.readline()

# 转换成数字列表
data = list(map(lambda x: int(x) if x.isdigit() else 0, data.split(' ')))
sum_list = []
sum = 0
for i in data:
    sum+=i
    sum_list.append(sum)

window_size = 10000
for t in range(100000, 1000001, 100000):

    print(f"Timestamp: {t}, ground truth: {sum_list[t]-sum_list[t-window_size]}")
